package com.chcplayer.ui
{
/**
 * author yh
 */
public class SetBgRectExWindow extends BaseWindow
{
	/**
	 */
	public static const TEXT_X:int = 50;
	/**
	 */
	public static const TEXT_Y:int = 50;
	/**
	 */
	public static const BUTTON_X:int = 120;
	/**
	 */
	public static const BUTTON_Y:int = 300;
//--------------------------------------------------------------------------------------------------
// private
//--------------------------------------------------------------------------------------------------
	/**
	 */
	private var m_obInput:FourSidedTextInput = new FourSidedTextInput();
	/**
	 */
	public function SetBgRectExWindow()
	{
		super("设置扩边", 350, 400);
		/*
		*/
		p_btnOK.x = BUTTON_X;
		p_btnOK.y = BUTTON_Y;
		this.addChild(p_btnOK);
		m_obInput.x = TEXT_X;
		m_obInput.y = TEXT_Y;
		this.addChild(m_obInput);
	}
//==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
// protected
//==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
	override protected function _OnClose():void
	{
		p_obApp.setBgRectEx(m_obInput.getRectFromText() );
	}
	/**
	 */
	override protected function _OnShow():void
	{
		m_obInput.setTextFromRect(p_obApp.getBgRectEx());
	}
	/**
	 */
}
}